/*
 * cableenergy.h
 *
 *      Author: Jerome RD Soine and Christoph A Brand
 *      Institution: Schwarz goup, Institute for Theoretical Physics, Heidelberg University, Germany
 */

#ifndef CABLEENERGY_H_
#define CABLEENERGY_H_

#include "elasticenergy.h"
#include "../../geometry/geomobject.h"

class CableEnergy : public ElasticEnergy {

public:
	CableEnergy(GeomObject * G, double SPRING_CONSTANT, double prestrain);

	virtual double getEnergy();
	virtual double getEnergyOfEdge(Edge * edge);
	virtual double getForceOfEdge(Edge * edge);
	virtual Vertex getGradient(Vertex & v);
};


#endif /* CABLEENERGY_H_ */
